home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Magazin/MacEasy 19
/
Mac Magazin and MacEasy Magazine CD - Issue 19.iso
/
Musik & Kunst
/
Ear Workout 2.1
/
source code
/
mac_util.cp
< prev
Wrap
Text File
|
1995-11-28
|
814b
|
53 lines
#include <stdio.h>
#include <math.h>
#include <OSUtils.h>
#include <QuickDraw.h>
#include <Sound.h>
#include "Ninkasi:C++ util:generic.h"
#include "Ninkasi:C++ util:complete_window.h"
#include "ear_defines.h"
#include "ear_decl.h"
#include "ear_prototypes.h"
void
normal_text_style()
{
TextSize((short) normal_font_size);
TextFace((Style) normal_text_face);
TextFont((short) normal_font);
}
void
copy_pascal_string(Str255 to,Str255 from)
{
int i,n;
n = from[0];
for (i=0; i<=n; i++) {
to[i] = from[i];
}
}
void
arrow_cursor()
{
SetCursor(&arrow);
}
void
watch_cursor()
{
CursHandle ch;
ch = GetCursor(watchCursor);
if (!VALID_HANDLE(ch)) {
arrow_cursor();
}
else {
HLock((Handle) ch);
SetCursor(*ch);
HUnlock((Handle) ch);
}
}